:deep(.el-input-number) {
  .el-input {
    .el-input__wrapper {
      .el-input__inner {
        text-align: left;
      }
    }
  }
}

.warehouse_options_container {
  display: flex;
  align-items: center;
  column-gap: 32px;
  height: 100%;

  .can_negative_stock {
    display: flex;
    column-gap: 2px;
    align-items: center;
    height: 14px;

    .iconfont {
      font-size: 12px;
      font-weight: normal;
    }

    .icon-yunxu {
      color: $primaryColor !important;
    }

    .icon-no {
      color: $deleteColor !important;
    }

    .text {
      font-size: 12px;
      height: 14px;
      line-height: 13px;
      color: #606266 !important;
      font-weight: normal;
    }
  }
}

:deep(.fixed-row) {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 3;
}

.table-header {
  display: flex;
  align-items: center;
  column-gap: 5px;
}

.popover-container {
  display: flex;
  column-gap: 5px;
}

.warehouse-entry-wrapper {
  height: calc(100vh - 92px);
  padding: 12px;
  box-sizing: border-box;

  .main {
    background-color: #fff;
    box-sizing: border-box;
    padding: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;

    .header {
      background-color: #fff;
      display: flex;
      justify-content: space-between;
      box-sizing: border-box;
      padding: 0 16px;

      .title {
        display: flex;
        align-items: center;
        column-gap: 5px;

        .new {
          font-size: 14px;
          font-weight: bold;
          padding-left: 6px;
          border-left: 3px solid $primaryColor;
        }

        .detail {
          display: flex;
          column-gap: 2px;
          align-items: center;

          .iconfont {
            font-size: 16px;
            color: $primaryColor;
          }

          .text {
            font-size: 14px;
            font-weight: bold;
            line-height: 14px;
          }
        }
      }

      .btn_group {
        display: flex;
        column-gap: 5px;
      }
    }

    .divider_line {
      border-bottom: 1px dotted #e5e5e5;
      margin: 12px 0;
    }

    .form_container {
      display: flex;
      flex-direction: column;
      row-gap: 12px;

      .title {
        display: flex;
        align-items: center;
        column-gap: 5px;
        box-sizing: border-box;
        padding: 0 18px;

        h4 {
          padding-left: 6px;
          border-left: 3px solid $primaryColor;
          font-size: 12px;
        }
      }

      :deep(.el-form) {
        display: flex;
        column-gap: 100px;
        flex-wrap: wrap;
        row-gap: 18px;
        box-sizing: border-box;
        padding: 0 12px;

        .form_item_container {
          display: flex;
          flex-direction: column;
          row-gap: 18px;

          .el-form-item {
            .el-form-item__label {
              height: 16px;
              line-height: 16px;
              margin: 0 0 3px 0;
            }

            .el-form-item__content {
              display: flex;
              flex-direction: column;
              align-items: flex-start;

              .el-select,
              .el-input {
                width: 400px;
              }

              .el-form-item__error {
                margin: 3px 0 0 0;
                padding: 0;
              }

              .el-textarea {
                width: 400px !important;

                .el-textarea__inner {
                  width: 400px !important;
                  height: 28px;
                  min-height: 28px !important;
                  max-height: 137px !important;
                }
              }
            }
          }
        }
      }
    }

    .table_container {
      display: flex;
      flex-direction: column;
      row-gap: 6px;
      box-sizing: border-box;
      padding: 0 12px;
      margin-top: 24px;
      flex: 1;
      height: 0;

      .title {
        font-size: 12px;
        font-weight: bold;
        padding-left: 6px;
        border-left: 3px solid $primaryColor;
      }

      .add_btn_container {
        display: flex;
        justify-content: flex-end;
      }

      .table {
        max-height: calc(100% - 16px - 6px);

        .selectError {
          :deep(.el-select__wrapper) {
            box-shadow: 0 0 0 1px $deleteColor inset;
          }
        }

        :deep(.el-textarea) {
          .el-textarea__inner {
            width: 100% !important;
            min-height: 28px !important;
            height: 28px;
            max-height: 152px !important;
          }
        }

        :deep(.el-table__empty-block) {
          height: fit-content !important;

          .el-table__empty-text {
            width: 100%;
            height: 100%;

            .empty_container {
              display: flex;
              justify-content: center;
              align-items: center;
              position: relative;

              .btn_container {
                position: absolute;
                right: 20px;
                top: 8px;
                height: 16px;
                line-height: 16px;
              }
            }
          }
        }
      }
    }
  }
}

.code_detail {
  height: 100%;
  display: flex;
  flex-direction: column;
  row-gap: 12px;

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .info_list {
      display: flex;
      column-gap: 32px;

      .info_item {
        display: flex;
        column-gap: 5px;
      }
    }
  }

  .table {
    max-height: calc(100% - 40px);
  }
}

.select_code {
  display: flex;
  flex-direction: column;
  row-gap: 12px;
  height: 99%;

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .info_list {
      display: flex;
      column-gap: 22px;

      .info_item {
        display: flex;
        column-gap: 5px;

        .label {
          white-space: nowrap;
        }
      }
    }

    .search {
      display: flex;
      column-gap: 5px;
    }
  }

  .table {
    max-height: calc(100% - 80px);
  }

  .pagination {
    display: flex;
    justify-content: flex-end;
  }
}

.check_form,
.reject_form {
  :deep(.el-textarea) {
    width: 100%;

    .el-textarea__inner {
      width: 100% !important;
      min-height: 75px !important;
      max-height: 150px !important;
    }
  }
}

.product_info {
  display: flex;
  height: 99%;
  column-gap: 12px;

  .sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    row-gap: 5px;

    .title {
      box-sizing: border-box;
      font-size: 14px;
      padding-left: 6px;
      border-left: 3px solid $primaryColor;
      margin: 4px 0;
    }

    .content {
      border: 1px solid #e5e5e5;
      box-sizing: border-box;
      padding: 0 12px;
      height: calc(100% - 66px);

      :deep(.el-radio-group) {
        width: 100%;
        height: 40px;
        column-gap: 12px;
        box-sizing: border-box;
        padding-left: 12px;
        border-bottom: 1px solid #e5e5e5;

        .el-radio {
          margin: 0;
          column-gap: 5px;
          height: 16px;

          .el-radio__label {
            padding: 0;
          }
        }
      }

      .type_list {
        padding: 6px 0 0 0;
        display: flex;
        flex-direction: column;
        row-gap: 4px;

        .type_item {
          height: 28px;
          list-style: none;
          box-sizing: border-box;
          padding: 0 14px;
          cursor: pointer;
          display: flex;
          align-items: center;
        }

        .active_type_item {
          background-color: rgba(0, 123, 255, 0.137254902) !important;
          color: #007cff;
        }
      }

      .page_pages {
        :deep(.el-pagination) {
          display: flex;
          justify-content: center;

          .el-pagination__total {
            margin: 0 !important;
          }

          .btn-prev {
            margin: 0;
          }
        }
      }
    }
  }

  .table_container {
    width: calc(100% - 300px - 12px);
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    height: 100%;

    .header {
      display: flex;
      justify-content: space-between;
      align-items: center;

      .title {
        font-size: 14px;
        padding-left: 6px;
        border-left: 3px solid $primaryColor;
      }

      .search {
        display: flex;
        column-gap: 5px;
        justify-content: flex-end;

        :deep(.el-select) {
          width: 140px;
        }

        :deep(.el-input) {
          width: 228px;
        }
      }
    }

    .table {
      max-height: calc(100% - 5px - 5px - 28px - 28px);
    }

    .pagination {
      display: flex;
      justify-content: flex-end;
    }
  }
}

.top_app {
  box-sizing: border-box;
  border-top: 1px solid #f3efef;
  padding: 12px 12px 0;
  background-color: rgb(240, 242, 245);

  .top_h {
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.048);
    height: 47px;
    padding: 0px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;

    .text {
      display: flex;
      align-items: center;

      .module_color {
        font-size: 18px;
        font-weight: bolder;
        margin-right: 8px;
      }

      .bound_No {
        font-weight: bold;
        padding: 0 8px;
        font-size: 14px;
      }
    }

    .btn_save_check {
      color: #e69103;
      border: 1px solid #e69103;
      padding: 0 10px;
      border-radius: 4px;
      height: 30px;

      &:hover {
        background-color: #e6930315;
      }

      &:focus {
        background-color: #e6930315;
      }
    }

    .btn_save {
      width: 3.2vw;
      background-color: $primaryColor;
      border-color: $primaryColor;
    }

    .btn_save:hover {
      background-color: rgba($primaryColor, 0.8);
      border-color: rgba($primaryColor, 0.8);
    }

    .btn_cancel {
      width: 3.2vw;
    }

    .btn_reject {
      color: #6222c2;
      border: 1px solid #6222c2;
      padding: 0 10px;
      border-radius: 4px;
      height: 30px;
      width: 3.2vw;

      &:hover {
        background-color: #f3edff;
      }

      &:focus {
        background-color: #f3edff;
      }
    }
  }
}

:deep(.el-radio__input.is-disabled) {
  span {
    background: #f5f7fa !important;
    border-color: #e4e7ed !important;
  }

  span.el-radio__label {
    color: #999 !important;
  }
}

:deep(.el-radio.is-disabled.is-checked) {
  span.el-radio__label {
    color: #999 !important;
  }
}

:deep(.el-table__row) {
  &:hover {
    .add_delete {
      display: block;
      cursor: pointer;
    }

    .order {
      display: none;
    }
  }
}

.header_code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;

  .left_text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    p {
      margin-left: 24px;
      color: #999;
      font-size: 12px;

      &:first-child {
        margin-left: 0;
      }

      span {
        color: #000;
        text-overflow: ellipsis;
        max-width: 200px;
        overflow: hidden;
        white-space: nowrap;
      }
    }
  }

  .btn_header_code {
    display: flex;
    align-items: center;

    .btn_save {
      width: 4.6vw;
      height: 28px;
      margin-right: 8px;
      border-radius: 4px;
    }
  }

  .btn_selec {
    width: 4vw;
    border-radius: 4px;
  }

  .code_info {
    display: flex;
    align-items: center;

    p {
      margin-left: 24px;
      color: #999;

      span {
        color: #000;
      }
    }
  }
}

.order {
  display: block;
}

.add_delete {
  display: none;

  .add {
    padding-right: 10px;
  }
}

.change_style {
  color: #007cff;

  &:hover {
    text-decoration: underline;
    cursor: pointer;
  }
}

:deep(.check_dialog_boyd) {
  .check_dialog {
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: rgba(255, 141, 26, 1);
  }

  .tip_text {
    margin-bottom: 12px;
  }

  .el-dialog__body {
    padding: 20px;
  }
}

.main_left {
  border: 1px solid #e4e7ed;
  border-bottom: none;
  border-radius: 2px;
  position: relative;
  height: calc(100% - 1px);

  .titile_h4 {
    border-bottom: 1px solid #e4e7ed;
    height: 40px;
    line-height: 40px;
    padding: 0 20px;
  }

  .goods_type {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #e4e7ed;
    padding: 4px 0;
  }

  .ul_pop_up {
    padding: 0 30px 30px;

    .li_pop_up {
      padding: 5px 0;
      cursor: pointer;
      font-size: 12px;

      &:hover {
        color: #999;
      }
    }
  }

  .page_pages {
    width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
  }
}

:deep(.goods_select) {
  .main_right {
    padding: 12px 20px;
    height: calc(100% - 24px);
    position: relative;

    .header {
      display: flex;
      justify-content: flex-end;

      .w120 {
        width: 120px;
        margin-right: 5px;
      }

      .el-date-editor {
        width: 250px;
        margin-right: 10px;
      }

      .input-with-select {
        width: 180px;
        margin-right: 8px;
      }

      .mr_5 {
        margin-right: 5px;
      }

      .el-button + .el-button {
        margin-left: 8px;
      }

      .input-with-select_w {
        width: 250px;
        margin-left: 8px;
      }

      .type_select {
        margin-right: 8px;
      }

      .w100 {
        width: 100px;
      }
    }

    .table-reg {
      width: 100%;
      margin: 10px 0;
      height: 486px;

      .footer {
        padding: 10px 0;
        position: absolute;
        margin-bottom: 0;
        bottom: 0;
        z-index: 999;
      }
    }

    .pic {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      // margin-left: 4px;
    }
  }

  .el-dialog__body {
    padding: 0;
  }

  .el-dialog__footer {
    border-top: 1px solid #e4e7ed;
    padding: 10px 20px;
  }
}

.footer_code {
  margin-top: 12px;
}

:deep(.el-main) {
  --el-main-padding: 0;
}

:deep(.el-form-item__label) {
  font-size: 12px;
}

.newOut-ruleForm {
  .el-form-item__label {
    font-size: 12px;
  }

  .el-form-item {
    margin-bottom: 18px;
  }
}
